package com.store.utils;

import com.alibaba.fastjson.JSON;
import com.store.api.model.express.CreateOrder;
import com.store.api.model.express.OrderDetail;
import com.store.api.model.express.ProductDetail;
import com.store.api.model.express.Receive;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public abstract class SFApiProxy {

    // 这两个函数需要开发者自行实现
    // 注意 md5 返回小写的32位16进制字符串
    protected abstract String md5(byte[] toSignBytes);

    protected abstract String base64Encode(byte[] md5ResultBytes);

    protected abstract void post(String url, byte[] postBody);


}
